package router

import (
	"gin-vue-admin/api/v1"
	"gin-vue-admin/middleware"
	"github.com/gin-gonic/gin"
)

func InitTaskManagerRouter(Router *gin.RouterGroup) {
	TaskManagerRouter := Router.Group("taskManager").Use(middleware.OperationRecord())
	{
		TaskManagerRouter.POST("createTaskManager", v1.CreateTaskManager)   // 新建TaskManager
		TaskManagerRouter.DELETE("deleteTaskManager", v1.DeleteTaskManager) // 删除TaskManager
		TaskManagerRouter.DELETE("deleteTaskManagerByIds", v1.DeleteTaskManagerByIds) // 批量删除TaskManager
		TaskManagerRouter.PUT("updateTaskManager", v1.UpdateTaskManager)    // 更新TaskManager
		TaskManagerRouter.GET("findTaskManager", v1.FindTaskManager)        // 根据ID获取TaskManager
		TaskManagerRouter.GET("getTaskManagerList", v1.GetTaskManagerList)  // 获取TaskManager列表
	}
}
